package com.bruce.demo2.patterns.demo2.structural.demo08.decorator;

/**
 * @PROJECT_NAME: design_patterns
 * @DESCRIPTION: 快餐接口类
 * @AUTHOR: CNBruceLee
 * @DATE: 2021/7/25 21:05
 */
public abstract class FastFood {

    /**
     * 实物名称
     */
    private String desc;

    /**
     * 食物价格
     */
    private float price;


    public FastFood(String desc, float price) {
        this.desc = desc;
        this.price = price;
    }

    public float getPrice() {
        return price;
    }

    public String getDesc() {
        return desc;
    }


    /**
     * 计算价格
     *
     * @return 价格
     */
    public abstract float cost();
}
